package com.hxzy.module.auth.api.auth.resp;

 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * @Author wy
 * @Description TODO
 * @Date 2024/1/26 16:14
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "oauth2.0令牌的数据")
public class Oauth2TokenDto implements Serializable {

    @ApiModelProperty(value ="访问令牌")
    private String token;

    @ApiModelProperty(value ="刷令牌")
    private String refreshToken;

    @ApiModelProperty(value ="访问令牌头前缀")
    private String tokenHead;

    @ApiModelProperty(value ="有效时间（秒）")
    private int expiresIn;
}

